package com.example.environment.base.utils;


import org.apache.commons.lang3.RandomStringUtils;

import java.text.SimpleDateFormat;

public class BaseUuidUtil {

    public String getUuid(String head){
        StringBuffer stringBuffer = new StringBuffer();
        SimpleDateFormat sdf = new SimpleDateFormat("HHmmssSSSS");
        stringBuffer.append(head);
        stringBuffer.append( sdf.format(System.currentTimeMillis()));
        stringBuffer.append(RandomStringUtils.randomAlphanumeric(5));
        return stringBuffer.toString();
    }
}
